package com.logos.blog.auth.controller;

import com.logos.blog.api.user.service.UserFacadeService;
import com.logos.blog.auth.request.LoginReq;
import com.logos.blog.auth.response.LoginResp;
import com.logos.blog.web.vo.Result;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author logos
 * date 2025/7/6 19:48
 * @version v1.0
 * @Package com.logos.blog.auth.controller
 */
@RestController
@Slf4j
@RequestMapping("/auth")
public class AuthController {

    @DubboReference(version = "1.0")
    private UserFacadeService userFacadeService;

    @PostMapping("/login")
    public Result<LoginResp> login(@RequestBody LoginReq loginReq){
        return Result.success(new LoginResp());
    }
}
